import React from 'react';
import styles from './index.less';
import store from '../store/store.js';
import Route from '../router/';  
import { Provider } from 'react-redux';
import axios from 'axios';

// ajax 拦截-发送前
axios.interceptors.request.use((config) => {
	return config;
}, (err) => {
});
// ajax 拦截-返回后
axios.interceptors.response.use((res) => {
	return res.data;
}, (err) => {
});

export default () => {
	return (
		<Provider store={store}>
			<Route />
		</Provider>
	);
}
